# 使用 Python作为基础镜像
FROM python
LABEL authors="zcx"
# 设置工作目录
WORKDIR /home/patient/
ADD . /home/patient/
# 设置清华 pip 镜像
RUN pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple -r /home/patient/requirement.txt

# 设置环境变量cat
ENV PYTHONUNBUFFERED=1

EXPOSE 8000

# 启动 Django 服务器
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]